<?php
/**
 * 自定义宠物类
 */

namespace Xxb\XxbPhpAlgo\Topic;

class Pet
{
    /**
     * @var string 类型
     */
    private $type;

    /**
     * @var string 名字
     */
    private $name;

    public function __construct($type, $name)
    {
        $this->type = $type;
        $this->name = $name;
    }

    public function getType()
    {
        return $this->type;
    }

    public function getName()
    {
        return $this->name;
    }
}
